//******************************************************************************
//    CG^2 - Client of GUCAS Gateway
//    Copyright (C) 2010 Rui Diao
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
//    Author's Email: diaorui@lsec.cc.ac.cn doraemonok@163.com
//    Website: http://lsec.cc.ac.cn/~diaorui/software/cg2/
//******************************************************************************

#include <QApplication>
#include "mainWindow.h"

int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
    QTextCodec::setCodecForTr(codec);
    //QTextCodec::setCodecForLocale(codec);
    //QTextCodec::setCodecForCStrings(codec);    
    app.setQuitOnLastWindowClosed(false);
    MainWindow mainWindow;    
    mainWindow.show();
    return app.exec();
}
